package com.youngwang.dao;

import com.youngwang.entity.UserEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author youngwang
 *         Date: 2016/9/20
 */

public interface UserDao extends JpaRepository<UserEntity, Long> {

    List<UserEntity> findByNameAndPhoneOrderByIdDesc(String name, String phone);
}
